package dao;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
import java.text.SimpleDateFormat;
import java.util.Date;

import play.db.DB;

public class DAOConnection {
	private static Connection connection = null;

	public static Connection getConnection() {

		connection = DB.getConnection();
		return connection;
	}

	public static void closeConnection() {
		try {
			if (connection != null) connection.close();
		} catch (SQLException e) {
			System.out.println("Erro fechando conexao: " + e);
		}
	}


}